//
//  Globle.h
//  TBRJL
//
//  Created by 程三 on 15/6/13.
//  Copyright (c) 2015年 程三. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LocationModel.h"
#import "VillageModel.h"
#import "PolicyModel.h"

@interface Globle : NSObject

//-------------------------     登录返回用户信息     ------------------------
@property (nonatomic, strong) AccountModel *account;
@property (nonatomic, copy) NSString *headImg;

//-------------------------     未注册 游客登录模式     ----------------------
@property(nonatomic,copy) NSString *visitorName;
@property(nonatomic,copy) NSString *visitorIcon;
@property(nonatomic,copy) NSString *visitorQQID;
@property(nonatomic,copy) NSString *visitorWXID;

//-------------------------     头条、新闻数据缓存     -----------------------
@property(nonatomic, strong) NSArray *homeHeadlineArys;
@property(nonatomic, strong) NSArray *headlineArys;
@property(nonatomic, strong) NSArray *policyArys;

//-------------------------     地理位置信息     ----------------------------
//位置信息
@property(nonatomic,strong) LocationModel *locations;

//区域id
@property(nonatomic,copy) NSString *areaid;

//普通用户
@property(nonatomic,assign) BOOL isNormal;
//是否下载
@property(nonatomic,assign) BOOL isDownload;

+(Globle *)getInstance;

//清楚所有数据
- (void)cleanAllObject;
//用户信息
- (void)saveAccountInfo:(NSDictionary *) dict;
//位置信息
- (void)saveAreaid:(NSString *)areaidStr;
//定位信息
- (void)saveLocation:(LocationModel *) model;
//首页头条新闻
- (void)saveHomeHeadline:(NSArray *) arrays;
//村头条
- (void)saveHeadline:(NSArray *) arrays;
//政策法规
- (void)savePolicy:(NSArray *) arrays;
//保存附件下载id
- (void)saveAttachment:(NSDictionary *)dict;
//根据id 判断是否下载附件 ID 政策id    附件地址
- (BOOL)judgeFJIsDownloadWIthFJID:(NSString *)fjID;
@end
